<?php
$this->load->view('header');
?>
<?php
    if($msg == NULL){
        echo "<font color='red'>错误的页面请求！</font>";
        return;
    }
?>

<div id="main_content">
<div class="titlebar"><?= $title;?></div>
<div class="top_margin"></div>
<div class="homepage_mid_column">
<?php $this->load->view('user/user_leftnav');?>

<div class="book_charts2">
<table align="left">
    <tr><th height="20" align="left" width="60">标题：</th><td height="20"><?=$msg->theme?></td></tr>
    <tr><th height="20" align="left" width="60">发件人：</th><td height="20"><?=$msg->sender_id?></td></tr>
    <tr><th height="20" align="left" width="60">时间：</th><td height="20"><?=$msg->time?></td></tr>
    <tr><th height="20" align="left" width="60">内容：</th><td height="20"></td></tr>
    <tr><td colspan="2">
    <form action="" style="padding:0 0 0 60px">
        <textarea name="textarea" cols="60" rows="5"><?=$msg->content?></textarea>
    </form>
    </td></tr>
    <tr><td colspan="2">
    
    <form action="<?=site_url()?>/user/msg_handle" method="GET" style="padding:0 0 0 60px">
        <?php
        if($kind == 'rec'){
            echo "<input type=\"submit\" name=\"click\" value=\"回复\">";
        }
        
        ?>
        <input type="submit" name="click" value="删除">
        <input type="hidden" name="msgid" value="<?=$msg->id?>">
        <input type="hidden" name="kind" value="<?=$kind?>">
        <input type="hidden" name="theme" value="<?=$msg->theme?>">
        <input type="hidden" name="sender_id" value="<?=$msg->sender_id?>">
    </form>
    </td></tr>    
</table>
</div>
</div> <!--homepage_mid_column-->
</div>

<?php
$this->load->view('footer2');
?>